<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<script type="text/javascript" src="http://i.inaoke.com/cnad.js" charset="utf-8"></script>
<title>测试广告</title>
<meta name="keywords" content="测试" />
<meta name="description" content="描述" />
</head>
<body>
<script type="text/javascript">
Q.B.M='8,0,523,548,559-569-564';
Q.B.V='9110860782507f7836f57b45033c2500';
Q.GO();
</script>
<script type="text/javascript">
Q.B.M='1,0,519,541,560-559-569';
Q.B.V='3a54168e56efbf5e0b0a1aa3b3d518f0';
Q.GO();
</script>
<script type="text/javascript">
Q.B.M='2,0,521,545,560-568-566-564';
Q.B.V='53f016d0c49c01cd9eb67339c02d5b1f';
Q.GO();
</script>
<script type="text/javascript">
Q.B.M='3,0,523,548,560-569-563';
Q.B.V='643c7fc3513b1c9d3fe199524a8f2a28';
Q.GO();
</script>
<script type="text/javascript">
Q.B.M='7,572,519,525,558-568-564';
Q.B.V='f5fb59a38409f85dcac8709a3d8d00df';
Q.GO();
</script>
<?php
$array=array(
	array('a'=>'a','b'=>'b','c'=>'c','d'=>1,'e'=>1,'f'=>1),
	array('a'=>'a','b'=>'b','c'=>'c','d'=>1,'e'=>1,'f'=>1),
	array('a'=>'b','b'=>'c','c'=>'a','d'=>1,'e'=>1,'f'=>1),
	array('a'=>'b','b'=>'a','c'=>'c','d'=>1,'e'=>1,'f'=>1),
	array('a'=>'c','b'=>'a','c'=>'c','d'=>1,'e'=>1,'f'=>1),
);
$keyword='10:542,2:关键字,5:536,7:569';
$user='/(\d+):532|(\d+):关键字|(\d+):542|(\d+):21/u';
preg_match_all($user,$keyword,$matches,PREG_PATTERN_ORDER);
$aptitude=0;
foreach($matches[0] as $value){
	$aptitude+=intval($value);
}
print_r($aptitude);
print_r($matches);
exit();

$keyword='i.inaoke.com<br/>1,www.inaoke.com<br/>2,3,5,www.hao123.com,i.a.www.hao123.com<br/>1,www.inaoke.com';
$user='/[a-zA-Z0-9]+(\.[a-zA-Z0-9]+)+/u';
preg_match_all($user,$keyword,$matches,PREG_PATTERN_ORDER);
$matches=array_unique($matches[0]);
print_r($matches);
echo md5('2b7e151580aed2a6abf7158809cf4f3c'.'127.0.0.1');
/*
print_r(array_merge_recursive($array[0],$array[2]));
print_r(array_reduce($array,'array_merge_recursive'),array());
echo '<br/>';
echo md5('2b7e151580aed2a6abf7158809cf4f3c'.'192.168.74.188');
$a=json_decode('{"visitor":"","track":"","order":"279631094","money":159,"commision":10,"time":"2012-01-25 H:i:s","state":"发货"}');
$keyword='542:10,关键字:2,536:5,569:7';
$user='/532:\d+|关键字:\d+|542:\d+|21:\d+/u';
preg_match_all($user,$keyword,$matches,PREG_PATTERN_ORDER);
print_r($matches);
*/
?>